package com.quanyan.place.enums;

import com.quanyan.common.enums.BaseEnum;

/**
 * Created by jingliu on 16/5/26.
 */

/**
 * 搜索类型
 */
public enum SearchTypeEnum implements BaseEnum{
    LAST_UPDATE_TIME(1, "LAST_UPDATE_TIME", "最后更新时间", true),
    APP_SEARCH_EVER(2, "HOT_SEARCH", "app搜索不限时间", false),
    KEY_WORD(3, "KEY_WORD", "关键字", false),
    DATE_FILTERS(4, "DATE_FILTERS", "时间筛选", false),
    MAP_MODE(5, "MAP_MODE", "地图方式", false),
    H5_SEARCH(6, "H5_SEARCH", "h5搜索", false),
    H5_SEARCH_EVER(7, "H5_SEARCH_EVER", "h5搜索不限时间", false)
    ;

    protected int id;

    protected String code;

    protected String label;

    protected boolean success;

    SearchTypeEnum(int id, String code, String label, boolean success) {
        this.id = id;
        this.code = code;
        this.label = label;
        this.success = success;
    }

    @Override
    public boolean isSuccess() {
        return success;
    }

    @Override
    public int getId() {
        return id;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getLabel() {
        return label;
    }
}

